package com.keller.seckill.service;

import com.keller.seckill.mapper.GoodsMapper;
import com.keller.seckill.vo.GoodsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;

    public List<GoodsVo> findGoodsVo() {
        return goodsMapper.findGoodsVo();
    }

    public GoodsVo findGoodsVoDetailByGoodid(Long goodsId) {
        return goodsMapper.findGoodsVoDetailByGoodid(goodsId);
    }
}
